/*
 * Copyright (c) 2016. zhaojin 15398699939@163.com
 */

package com.bankscene.screenfit.fragment;


import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;

import com.bankscene.screenfit.adapters.MenusGridViewAdapter;
import com.bankscene.screenfit.vus.MenusGridViewVu;

import org.greenrobot.eventbus.EventBus;

/**
 * 主页面菜单模块列表Presenter
 * Created by jiiiiiin on 6/14/16.
 */
public class MenusGridViewFragment extends BasePresenterFragment<MenusGridViewVu> {

    MenusGridViewAdapter adapter = MenusGridViewAdapter.newInstance(null);

    @Override
    protected void onBindVu() {
        vu.setListAdapter(adapter);
    }

    @Override
    protected Class<MenusGridViewVu> getVuClass() {
        return MenusGridViewVu.class;
    }

    @CheckResult
    public static MenusGridViewFragment newInstance(@NonNull EventBus bus) {
        MenusGridViewFragment menusGridViewFragment = new MenusGridViewFragment();
        menusGridViewFragment.bus = bus;
        return menusGridViewFragment;
    }

}
